<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
</head>
<body>
    <form action="demo_form.php">
        First name: <input type="text" name="fname"><br>
        last name: <input id="123" type="text" name="lname" disabled><br>
        <input type="submit" value="提交">
        <button onclick="disableTest()">xiugai</button>
        <script>

            // function disableTest(uid,val){
            //     document.getElementById("uid").disabled = val;

            // document.getElementById("123").disabled="";
            // }
        </script>
    </form>
    
</body>
<script>
    disableTest = function (params) {
        
    }
</script>
</html>